<?php
namespace App\Middleware;

use App\Exception\Message;
use App\Exception\LoginException;

class Authentication extends \HyperfSanctum\Middleware
{
    // 未通过验证
    protected function failedLogin()
    {
        throw new LoginException('failedlogin');
    }
    
    // 未通过验证
    protected function unauthenticated()
    {
        throw new Message('unauthenticated');
    }
}